const removeConsolePlugin = [];

if (process.env.NODE_ENV === "production") {
  removeConsolePlugin.push("transform-remove-console");
}

module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
  plugins: [
    [
      "import",
      {
        libraryName: "@hips/vue-ui",
        libraryDirectory: "es",
        style: true
      },
      "@hips/vue-ui"
    ],
    ...removeConsolePlugin
  ]
};
